<?php
define('EmpireCMSAdmin','1');
require_once("../class/connect.php");
require_once("../class/db_sql.php");
require_once("../class/functions.php");
require_once("../class/user.php");
require_once("../class/page_obj.php");
require_once("../class/say.php");

$link=db_connect();
$empire=new mysqlquery();
$page=$_REQUEST['page'];
$page=new page_obj($page,array("itemnum"=>2,"border"=>2));
$page_start=$page->arr_temp['start'];
$page_end=$page->arr_temp['end'];
$page_current=$page->current_page;
$limit_str=$page->get_limit_str();
$act_db="phome_ecms_actives";
$reg_db="phome_jat_act_registration";
$act_id=$_REQUEST['act_id'];
if(!$act_id){
	echo "<div class='data-error'>系统错误</div>";
	exit();
}
$info=DbTouch($act_db,array('id'=>$act_id));
if(!$info){
	echo "<div class='data-error'>无此记录！</div>";
	exit();
}
$is_my_act=$info['userid']==$lguseid?true:false;
$regs=DbTouchAll($reg_db,array('act_id'=>$act_id));
?>
<table  class="tb_member_list" style="width:960px;">
<tr><td>头像</td><td>用户名</td><td>真实姓名</td><td>电话</td><td>性别</td><td>所在学校或公司</td><td>人数</td><td>紧急联系人</td><td>紧急联系方式</td><td>备注</td><td>保险号</td><td>申请时间</td><td>状态</td><td></td></tr>
<?php
foreach($regs as $key=>$vals)
{
	$is_run=true;
	$u=getUserInfo($vals['uid']);
	$head=getUserHead($u["userpic"],69,69);
	$is_show=false;
?>
<tr>
	<td>
		<a href='<?=$public_r['newsurl']."e/member/sp/?uid=".$vals['uid']?>'>
			<img src="<?=$head?>" width="30"/></a>
	</td>	
	<td><?=$is_show?$u["username"]:"***";?></td><td><?=$vals["truename"]?></td>	
	<td><?=$is_show?$vals["tel"]:"***";?></td><td><?=$vals["sex"]=2?"男":"女"?></td>
	<td><?=$is_show?$vals["corporation"]:"***";?></td><td><?=$vals["num"]?></td>
	<td><?=$is_show?$vals["aid_person "]:"***";?></td><td><?=$vals["aid_person"]?></td>
	<td><?=$is_show?$vals["remark"]:"***";?></td><td><?=$vals["time"]?></td>
	<td><?=$vals["status"]?></td>
</tr>

<?php }?>
</table>
<?
//}
if(!$is_run){echo "<li><div class='no-data'>暂无数据！</div></li>";}
?>